package com.cargohu.aishouyu.member.service;

import com.cargohu.aishouyu.framework.page.Paging;
import com.cargohu.aishouyu.framework.service.BaseService;
import com.cargohu.aishouyu.member.dto.ChatPhraseAddDTO;
import com.cargohu.aishouyu.member.dto.ChatPhraseUpdateDTO;
import com.cargohu.aishouyu.member.entity.ChatPhrase;
import com.cargohu.aishouyu.member.req.ChatPhraseRequest;
import com.cargohu.aishouyu.member.resp.ChatPhraseDetailVo;
import com.cargohu.aishouyu.member.resp.ChatPhraseResponse;
import com.cargohu.aishouyu.member.resp.MemberChatPhraseVo;

import java.util.List;

/**
 * 聊天常用语 服务接口
 *
 * @author yww
 * @since 2023-11-28
 */
public interface ChatPhraseService extends BaseService<ChatPhrase> {

    /**
     * 添加聊天常用语
     *
     * @param chatPhraseAddDTO
     * @return
     * @throws Exception
     */
    boolean addChatPhrase(ChatPhraseAddDTO chatPhraseAddDTO) throws Exception;

    /**
     * 修改聊天常用语
     *
     * @param chatPhraseUpdateDTO
     * @return
     * @throws Exception
     */
    boolean updateChatPhrase(ChatPhraseUpdateDTO chatPhraseUpdateDTO) throws Exception;

    /**
     * 删除聊天常用语
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteChatPhrase(Long id) throws Exception;

    /**
     * 聊天常用语详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    ChatPhraseDetailVo getChatPhraseById(Long id) throws Exception;

    /**
     * 获取用户聊天常用语列表
     *
     * @param memberId
     * @return
     * @throws Exception
     */
    List<MemberChatPhraseVo> getChatPhraseByMemberId(Long memberId) throws Exception;

    /**
     * 获取所有用户聊天常用语
     *
     * @param memberId
     * @return
     * @throws Exception
     */
    List<ChatPhraseDetailVo> getAllChatPhraseByMemberId(Long memberId) throws Exception;

    /**
     * 聊天常用语分页列表
     *
     * @param chatPhraseRequest
     * @return
     * @throws Exception
     */
    Paging<ChatPhraseResponse> getChatPhraseList(ChatPhraseRequest chatPhraseRequest) throws Exception;

}
